import request from "@/utils/request.js"
import {pwd} from "@/config/config"
import Cache from '@/utils/cache';
import { LOGIN_STATUS } from '@/config/store';
const token = Cache.get(LOGIN_STATUS)

/**
 * 查询直播协议
*/ 
export function getProtocol(){
  return request.post('yx/protocol_one',{pwd:pwd},{noAuth:true});
}
/**
 * 根据会员id 查询会员数据
*/ 
export function getUserInfo(uid){
  return request.post('yx/load_user_one',{pwd:pwd,token:token,uid:uid});
}
/**
 * 获取群主信息 机构名称
*/ 
export function getMyLoad(tokens){
  return request.post('yx/my_load',{pwd:pwd,token:tokens});
}
/**
 * 获取群主信息 机构名称
*/ 
export function wxLogin(param){
	let params={
		pwd:pwd,
		jx_id:param.jxid,
		code:param.code
	}
  return request.post('wxw/lord_user_add',params,{noAuth:true});
}
